/*
 * UserMapper.java
 *
 * Copyright 2012 the original author or authors(ninglong).
 *
 * Licensed under the web-geek, Version 1.0 (the "License");
 *
 */
package org.geek.core.mybatis.mapper;

import java.util.List;

import org.geek.core.annotation.MyBatisUtil;
import org.geek.core.mybatis.domain.Criteria;
import org.geek.core.mybatis.domain.User;


/**   
 * <p>用户mapper</p>
 * @author ninglong bhd2973@qq.com   
 * @version V1.0   
 */
@MyBatisUtil
public interface UserMapper{
	
	User getUserByAccount(String account);
	
	List<User> getUserByCriteria(Criteria criteria);
	
	int countUserByCriteria(Criteria criteria);
	
	int modUser(User user);
	
	int addUser(User user);
	
	int delUserByUserId(int userId);
	
	int delUserAndRoleByUserId(int userId);
	
	
	
	int saveRole2User(Criteria criteria);
	int delRole2UserByUserId(int userId);
	
	int saveGroup2User(Criteria criteria);
	int delGroup2UserByUserId(int userId);
	
}
